package cn.edu.klmy.controller.importdata;

import org.apache.poi.ss.usermodel.Row;

/**
 * 导入错误
 * 
 * @author 陈瑞军
 */
public class ImportError {
	private Row row;
	// 0:error 此种错误一般是由于非空字段不为空，导致不保存到数据库的错误   1:warn  通常为导入字段录入格式不正确，造成使用默认值，此种情况保存到Row到数据库中
	private int type;
	private String error;
	
	public ImportError(Row row, int type, String error) {
		super();
		this.row = row;
		this.type = type;
		this.error = error;
	}

	public Row getRow() {
		return row;
	}

	public void setRow(Row row) {
		this.row = row;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
	
}
